<template>
	<div class="home-header">
		<div class="header-left">
			<span class="iconfont header-back-icon">&#xe624;</span>
		</div>
		<div class="header-input">
			<span class="iconfont">&#xe632;</span>
			输入城市/景点/游玩主题
		</div>
		<router-link to='/city'>
			<div class="header-right">
				{{this.$store.state.city}}
				<span class="iconfont header-arrow">&#xe877;</span>
			</div>
		</router-link>
	</div>
</template>

<script>
	export default {
		name:'homeHeader',
		props: {
			
		}
	}
</script>

<style lang="scss" scoped>
	@import 'styles/varible';
	.home-header {
		display: flex;
		height: $headerHeight;
		line-height: $headerHeight;
		background-color: $bgColor;
		color:#fff;
		.header-left {
			width: .64rem;
			float: left;
			.header-back-icon {
				display: block;
				text-align: center;
			}
		}
		.header-input {
			flex:1;
			background-color: #fff;
			margin-top: .12rem;
			height: .66rem;
			line-height: .66rem;
			margin-left: .2rem;
			padding-left: .2rem;
			border-radius: .1rem;
			color: #ccc;
		}
		.header-right {
			min-width: 1.04rem;
			padding:0 .1rem;
			text-align: center;
			float: right;
			color:#fff;
			.header-arrow {
				font-size: .24rem;
				margin-left: -.1rem;
			}
		}
	}
</style>